Skip to main content

TideCloak Linux prerequisites

This Page will help you install all recommended prerequisites to install TideCloak

  • sudo
  • git
  • gh
  • wget
  • JDK-22
  • dotnet 8
  • nodeJS-typescript
  • docker

Installing sudo

apt-get install sudo
sudo adduser <username> sudo

Verify

sudo
sudo -l

Installing git

sudo apt install git

Verify

git --version

Installing gh

(type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \
&& sudo mkdir -p -m 755 /etc/apt/keyrings \
&& wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& sudo apt update \
&& sudo apt install gh -y

Verify

gh --version

Logging in with Github

you will need to use your personal access token to authenticate. If you don't have a Personal Access Token (PAT) yet, you need to generate one. Open the following link in your browser to create a new token:

Generate Personal Access Token

Make sure to select the minimum required scopes:

  • repo (Full control of private repositories)
  • read:org (Read-only access to organization memberships)
  • workflow (Update GitHub Action workflows)
gh auth login

Please copy the below options when prompted

  • What account do you want to log into? GitHub.com
  • What is your preferred protocol for Git operations on this host? HTTPS
  • How would you like to authenticate GitHub CLI? Paste an authentication token
  • Paste your authentication token: (your token)

Verify logged in Github user

gh auth status

Installing wget

sudo apt install wget

Verify

wget --version

Installing JDK-22

wget https://download.java.net/java/GA/jdk22.0.1/c7ec1332f7bb44aeba2eb341ae18aca4/8/GPL/openjdk-22.0.1_linux-x64_bin.tar.gz
tar xvf openjdk-22.0.1_linux-x64_bin.tar.gz
sudo mv jdk-22.0.1/ /usr/local/jdk-22
sudo tee -a /etc/profile.d/jdk22.sh<<EOF
export JAVA_HOME=/usr/local/jdk-22
export PATH=\$PATH:\$JAVA_HOME/bin
EOF
source /etc/profile.d/jdk22.sh

Verify

 java -version

Installing dotnet 8

wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb

sudo apt-get update && \
sudo apt-get install -y dotnet-sdk-8.0

sudo apt-get install clang zlib1g-dev

Verify

dotnet --version

Installing NodeJS-typescript

sudo apt install -y node-typescript

Verify

 tsc -v

Installing docker

for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg; done

#Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates
sudo install -m 0755 -d /etc/apt/keyrings
sudo wget --output-document=/etc/apt/keyrings/docker.asc https://download.docker.com/linux/debian/gpg
sudo chmod a+r /etc/apt/keyrings/docker.asc

# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update

sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

Verify

 sudo docker run hello-world

🎉 Congratulations on setting up your TideCloak prerequisites! 🎉 You've taken the first step towards integrating the powerful TideCloak with your applications. With all the recommended prerequisites in place, you're now ready to dive into the setup process and leverage the full potential of TideCloak's advanced security features.